<ion-view hide-back-button="true" style="background-color: #fff" title="">
  <ion-nav-buttons side="left">
    <label style="background-color: #fff; width: 95%; border-radius: 20px; left: 5px; height: 35px; line-height: 33px; display: block; position: fixed; z-index: 1000" ng-click="goSearch()">
      <i class="icon ion-search placeholder-icon" style="display: inline; padding-left: 10px"></i>
      <input placeholder="搜索商品" id="search-input" type="text" onfocus="this.blur()" style="display: inline; padding-left: 10px; width: 80%; background-color: #fff">
    </label>
  </ion-nav-buttons>
  <ion-content>
    <ion-refresher on-refresh="doRefresh()" pulling-text="下拉刷新中..."></ion-refresher>

    <div class="subclass-right" style="overflow: hidden">
      <div class="list" ng-repeat="class2 in c2" ng-if="class2.sub_class.length > 0">
        <div class="item item-divider" ui-sref="goods.search({classid:class2.product_class_id, type: class2.type})">
          <span style="float: left">{{class2.name}}</span>
          <span style="float: right"><i class="icon ion-chevron-right"></i></span>
        </div>
        <div ng-repeat="class3 in class2.class">
          <div class="item row subclass-goods">
            <div class="col col-33" ng-if="class3[0]" ui-sref="goods.search({classid:class3[0].product_class_id})" ui-sref-opts="{reload: true, notify: true}">
              <div class="subclass-goods-item">
                <div ng-if="!class3[0].imgurl"><img alt="" src="img/hd/file.png" style="width: 100%"></div>
                <div ng-if="class3[0].imgurl"><img alt="" src='img/hd/file.png' lazy-img="{{class3[0].imgurl}}" style="width: 100%"></div>
                <div>{{class3[0].name}}</div>
              </div>
            </div>
            <div class="col col-33" ng-if="class3[1]" ui-sref="goods.search({classid:class3[1].product_class_id})" ui-sref-opts="{reload: true, notify: true}">
              <div class="subclass-goods-item">
                <div ng-if="!class3[1].imgurl"><img alt="" src="img/hd/file.png" style="width: 100%"></div>
                <div ng-if="class3[1].imgurl"><img alt="" src='img/hd/file.png' lazy-img="{{class3[1].imgurl}}" style="width: 100%"></div>
                <div>{{class3[1].name}}</div>
              </div>
            </div>
            <div class="col col-33" ng-if="class3[2]" ui-sref="goods.search({classid:class3[2].product_class_id})" ui-sref-opts="{reload: true, notify: true}">
              <div class="subclass-goods-item">
                <div ng-if="!class3[2].imgurl"><img alt="" src="img/hd/file.png" style="width: 100%"></div>
                <div ng-if="class3[2].imgurl"><img alt="" src='img/hd/file.png' lazy-img="{{class3[2].imgurl}}" style="width: 100%"></div>
                <div>{{class3[2].name}}</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </ion-content>
</ion-view>
